#!/bin/bash
# Give the number of updates in automach over the last 24 hours.
DAYS=1
DATE=`perl -e "use HTTP::Date;print HTTP::Date::time2iso(time()-$DAYS*86400)"`;
echo "Last 24h Automach updates"
echo "select count(*) from automach where updated > '2011-08-07'" | mysql -u reader -preader -h database counter
